projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9e475e
)
GdkScreen: Set reasonable limis for ::resolution
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 4 Jul 2014 06:01:53 +0000
(
02:01
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 4 Jul 2014 06:01:53 +0000
(
02:01
-0400)
Otherwise, the spinbutton in the inspectors property editor
explodes in order to make room for MAXDOUBLE.
gdk/gdkscreen.c
patch
|
blob
|
history
diff --git
a/gdk/gdkscreen.c
b/gdk/gdkscreen.c
index a1ae7e722a427925cab15da3dd40e74d7d5cea3d..e2cbfb7d0d955401f5be91451f56813bf6f18a64 100644
(file)
--- a/
gdk/gdkscreen.c
+++ b/
gdk/gdkscreen.c
@@
-98,8
+98,8
@@
gdk_screen_class_init (GdkScreenClass *klass)
g_param_spec_double ("resolution",
P_("Font resolution"),
P_("The resolution for fonts on the screen"),
- -
G_MAXDOUBLE
,
-
G_MAXDOUBLE
,
+ -
1.0
,
+
10000.0
,
-1.0,
G_PARAM_READWRITE|G_PARAM_STATIC_NAME|
G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));